package com.cwm.test.decorator.v2;


/**
* 创建一个扩展套餐的抽象装饰者BattercakeDecorator类
*/
public class BattercakeDecorator extends Battercake {


    //静态代理，委派模式
    private Battercake battercake;


    public BattercakeDecorator(Battercake battercake) {
        this.battercake = battercake;
    }


    @Override
    protected String getMsg() {
        return this.battercake.getMsg();
    }


    @Override
    protected int getPrice() {
        return this.battercake.getPrice();
    }
}